package com.punch.punchtable.service;

import com.punch.punchtable.entity.Sumup;
import com.punch.punchtable.vo.DepartmentVO;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.annotation.Scheduled;

import java.util.List;
import java.util.Map;

public interface SumupService {

    Page<Sumup> findByPage(Example<Sumup> example, Pageable pageable);

    List<String> findDept();

    List<Sumup> findAll(Example<Sumup> example);

//    @Scheduled(cron = "0 0 1 * * ?")
//    String findAllByRole1();

    List<DepartmentVO> departmentList(Pageable pageable,String sql);
    Long departmentListCount(String tmpsql);
}
